import request from '@/utils/request'

// 查询噪声治理设施列表
export function listNoise(query) {
  return request({
    url: '/facilities/noise/list',
    method: 'get',
    params: query
  })
}

// 查询噪声治理设施详细
export function getNoise(nsId) {
  return request({
    url: '/facilities/noise/' + nsId,
    method: 'get'
  })
}

// 新增噪声治理设施
export function addNoise(data) {
  return request({
    url: '/facilities/noise',
    method: 'post',
    data: data
  })
}

// 修改噪声治理设施
export function updateNoise(data) {
  return request({
    url: '/facilities/noise',
    method: 'put',
    data: data
  })
}

// 删除噪声治理设施
export function delNoise(nsId) {
  return request({
    url: '/facilities/noise/' + nsId,
    method: 'delete'
  })
}

// 导出噪声治理设施
export function exportNoise(query) {
  return request({
    url: '/facilities/noise/export',
    method: 'get',
    params: query
  })
}